/**
 * 
 */
package com.fox.webapp.domain;

import java.util.Date;

import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author Yockii
 *
 */
@Document
public class LoginLog {

	@Id
	private ObjectId id;
	private String username;
	private String useLoginUsername;
	private String ipAddr;
	private Date time;
	
	private Boolean isWarning;
	
	public ObjectId getId() {
		return id;
	}
	public void setId(ObjectId id) {
		this.id = id;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getIpAddr() {
		return ipAddr;
	}
	public void setIpAddr(String ipAddr) {
		this.ipAddr = ipAddr;
	}
	public Date getTime() {
		return time;
	}
	public void setTime(Date time) {
		this.time = time;
	}
	/**
	 * @return the useLoginUsername
	 */
	public String getUseLoginUsername() {
		return useLoginUsername;
	}
	/**
	 * @param useLoginUsername the useLoginUsername to set
	 */
	public void setUseLoginUsername(String useLoginUsername) {
		this.useLoginUsername = useLoginUsername;
	}
	/**
	 * @return the isWarning
	 */
	public Boolean getIsWarning() {
		return isWarning;
	}
	/**
	 * @param isWarning the isWarning to set
	 */
	public void setIsWarning(Boolean isWarning) {
		this.isWarning = isWarning;
	}
	
}
